package com.mkh.st.admin.feign;

import com.mkh.st.admin.api.entity.SysImageConfig;
import com.mkh.st.admin.api.feign.IImageConfigProvider;
import com.mkh.st.admin.service.SysImageConfigService;
import com.mkh.st.common.core.util.R;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@AllArgsConstructor
public class ImageConfigProvider implements IImageConfigProvider {

	private final SysImageConfigService sysImageConfigService;

	@Override
	@GetMapping("/imageConfig/provider/getImageConfig")
	public R<SysImageConfig> getImageConfig() {
		return sysImageConfigService.getImageCongif();
	}
}
